﻿using System;
using SF.Code.Extension.WinAPI;

namespace SG.Ling.AutoTranslator.Common
{
    public static class Infrastructure
    {
        public static event EventHandler BeforeClose;

        public static void NotifyBeforeClose()
        {
            var copy = BeforeClose;

            if (copy != null)
                copy(null, new EventArgs());
        }

        public static IntPtr Handle
        {
            get { return MainPumpForm.Handle; }
        }

        public static InvisibleForm MainPumpForm { get; internal set; }

        public const string MainWindowName = "{3104002D-3B15-4C12-AF93-8D400E943646}";

        
    }
}
